package cn.com.io.day20151210;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;
import java.util.Scanner;

/**
 * Created by Administrator on 2015/12/10.
 */
public class ReadStandard {
    public static void main(String[] args){
        PrintStream print = null;
        try {
            Scanner scanner = new Scanner(System.in);
            new PrintStream(new FileOutputStream("ReadStandard_out.txt"));
            scanner.useDelimiter("\n");
            while(scanner.hasNext()){
                print.println("键盘输入的内容是："+scanner.next());
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }finally {
            if( print !=null){
                print.close();
            }
        }
    }
}
